package com.hgx.stream.rabbitmq.provider.controller;

import com.hgx.stream.rabbitmq.provider.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MessageProviderController {

    @Resource
    private IMessageProvider messageProvider ;


    @GetMapping("send")
    public  String send(){
        return messageProvider.send() ;
    }

}
